package com.dzsw.order.fallback;

import com.dzsw.order.feign.ItemFeignClient;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class ItemServiceFallback implements ItemFeignClient {

    @Override
    public Map<String, Object> queryItemById(Long id) {
        Map<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("title", "服务降级方法queryItemById");
        return map;
    }
}
